import Request from "../js_sdk/luch-request/luch-request/index.js";
import {BASEs, IDs, KEYs} from '../config/index'
//配置网络请求的地址和请求头,创建实例
let http = new Request({
	baseURL:BASEs+'/1.1',
	header:{
		"X-LC-Id":IDs,
		"X-LC-Key":KEYs,
		"Content-Type": "application/json"
	}
})

//删除请求头重新配置
let delHttp = new Request({
	baseURL:BASEs+'/1.1',
	header:{
		"X-LC-Id":IDs,
		"X-LC-Key":KEYs,
	}
})
// 抛出http方法
export default http
// 导出delHttp
export { delHttp }